#!/usr/bin/env python
# -*- coding: utf-8 -*-
# title       :
# description : ''
# author      : Aaron Hui Dango
# date        : 2018/10/26
# version     : 1.0
# usage       : for fps checking
# notes       :

# Built-in modules
import yaml
import os
# Third-party modules
from wrapper import wrapper
reload(wrapper)
# Studio modules
from listInfo import listInfo
import scenecheck
# Local modules


config_path = os.path.join(os.path.dirname(os.path.abspath(scenecheck.__file__)),'config/proj.yml')
with open(config_path,'r') as f:
    proj_name_data = yaml.load(f)


proj_name = 'Phoenix'


@wrapper.checking_name_decorator(sdandard_name=proj_name_data[proj_name]['scene_name'])
def check_file_name():
    return listInfo.get_current_file_name()

@wrapper.checking_name_decorator(sdandard_name=proj_name_data[proj_name]['fps_info'])
def check_fps():
    return listInfo.get_current_fps()

